import Vue from 'vue'
import axios from 'axios'

axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'

const baseAxios = axios.create({
  baseURL: '/api/sm'
})
Vue.prototype.$http = baseAxios
const originGet = baseAxios.get
baseAxios.get = (url, params, config) => originGet(url, {
  params,
  url,
  ...config
})
